cmake_minimum_required(VERSION 3.2)

set(PROJECT_NAME mt_honeypot)
project(${PROJECT_NAME})

set(CMAKE_CXX_FLAGS "-g -O2 -std=c++17 -Wall -Wextra -Weffc++ -Wshadow -Wcast-align -Wcast-qual -Woverloaded-virtual -Wstrict-null-sentinel -Wswitch-default -Winit-self -Wlogical-op -Wno-deprecated-declarations")

find_package(Boost 1.66 COMPONENTS program_options system regex REQUIRED)

include_directories(SYSTEM ${Boost_INCLUDE_DIR})
include_directories(../common/)

add_executable(${PROJECT_NAME}
    src/main.cpp
    src/logging.cpp
    src/mt_server.cpp
    src/mt_connection.cpp
    ../common/winbox_message.cpp)

target_link_libraries(${PROJECT_NAME} ${Boost_LIBRARIES} -lpthread -lgeolite2++ -lmaxminddb)
